def hrop(x):
	if x == 0 or x == 1:
		return 1
	return x*hrop(x-1)

def pascal(x):
	mengi = []
	for y in range(x+1):
		mengi.append(int(hrop(x)/(hrop(y)*hrop(x-y))))
	return mengi

def convert(xy):
	skil = ""
	for x in xy:
		if int(x)%2 == 0:
			skil += "."
		if int(x)%2 == 1:
			skil += "#"
	return skil

fjoldi = int(input())
print("#")
for x in range(1, fjoldi):
	print(convert(pascal(x)))

